home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / smail.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  1.0 KB  |  49 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=smail.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: smail.SH,v 3.1 86/12/24 10:44:10 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for smail
  14. ##############
  15. ##################################################
  16. ##################################################
  17.  
  18. # the directory to search
  19. directory $datadir
  20.  
  21. # enable tracing
  22. verbose 1
  23.  
  24. # add comment header
  25. comment hdr.file
  26.  
  27. # output format
  28. output mixed smail
  29.  
  30. context MAIL janet
  31. context MAIL pss
  32. !GROK!THIS!
  33. then
  34.     : OK
  35. else
  36.     echo "    " Failed to create $outputfile.$$
  37.     exit 1
  38. fi
  39. if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  40. then
  41.     rm -f $outputfile.$$
  42.     echo "    " $outputfile not affected
  43. elif mv $outputfile.$$ $outputfile
  44. then
  45.     echo "    " $outputfile updated
  46. else
  47.     echo "+++    " $outputfile left in $outputfile.$$
  48. fi
  49.